﻿using System;
using System.Diagnostics;
using System.Xml.Serialization;
using PrearrangedChaos.AgileZen.Service.Model;

namespace PrearrangedChaos.AgileZen.Service.Rest
{
    /// <remarks/>
    [DebuggerStepThrough()]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRoot(ElementName = "phases", Namespace = "", IsNullable = false)]
    [ZenRestRequest("projects/{ProjectId}/phases")]
    public partial class PhaseCollection : PagingCollection<Phase>
    {
        private Phase[] _phases;

        /// <remarks/>
        [XmlArrayItemAttribute("phase", IsNullable = false)]
        [XmlArray(ElementName = "items")]
        public Phase[] Items
        {
            get
            {
                return this._phases;
            }
            set
            {
                this._phases = value;
            }
        }

        public override Phase[] GetItems()
        {
            return this._phases;
        }
    }
}
